class Category {
  String code;
  String message;
  List<BigCategory> data;

  Category({this.code, this.message, this.data});

  Category.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    if (json['data'] != null) {
      data = new List<BigCategory>();
      json['data'].forEach((item) {
        data.add(BigCategory.fromJson(item));
      });
    }
  }
}

class BigCategory {
  String mallCategoryId;
  String mallCategoryName;
  List<SubCategory> bxMallSubDto;
  String comments;
  String image;

  BigCategory(
      {this.mallCategoryId,
      this.mallCategoryName,
      this.bxMallSubDto,
      this.comments,
      this.image});

  BigCategory.fromJson(Map<String, dynamic> json) {
    mallCategoryId = json['mallCategoryId'];
    mallCategoryName = json['mallCategoryName'];
    if (json['bxMallSubDto'] != null) {
      bxMallSubDto = new List<SubCategory>();

      json['bxMallSubDto'].forEach((item) {
        bxMallSubDto.add(SubCategory.fromJson(item));
      });
    }

    comments = json['comments'];
    image = json['image'];
  }
}

class SubCategory {
  String mallSubId;
  String mallCategoryId;
  String mallSubName;
  String comments;

  SubCategory(
      {this.mallSubId, this.mallCategoryId, this.mallSubName, this.comments});

  SubCategory.fromJson(Map<String, dynamic> json) {
    mallSubId = json['mallSubId'];
    mallCategoryId = json['mallCategoryId'];
    mallSubName = json['mallSubName'];
    comments = json['comments'];
  }
}
